package com.fddh.springboot.mapper;

import com.fddh.springboot.dto.OptionsDto;
import com.fddh.springboot.dto.QuestionDto;
import com.fddh.springboot.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper //注释为Mapper
public interface QuestionMapper{

    //add问题
    int addQuestion(QuestionDto questionDto);

    //得到问题列表
    List<Question> getQuestionList();

    //添加选项
    int addOptions(OptionsDto optionDto);


}
